package com.baeldung.rate.impl;

import com.baeldung.rate.api.Quote;
import com.baeldung.rate.api.QuoteManager;

import java.time.LocalDate;
import java.util.Arrays;
import java.util.List;

public class YahooQuoteManagerImpl implements QuoteManager {


    @Override
    public List<Quote> getQuotes(String baseCurrency, LocalDate date) {
        return Arrays.asList(new Quote[]{
                new Quote("USD", LocalDate.now()),
                new Quote("CNY", LocalDate.now()),
                new Quote("JPY", LocalDate.now())
        });
    }
}